
class POTION: public ITEM
{
private:
	int quantity;
	int healthrestore;
	int manarestore;
public:
	POTION()
	{
		//does nothing
	}
	POTION(POTION* np)
	{
		CreatePotion(np->GetName(),np->GetHealthRestore(),np->GetManaRestore(),np->GetPrice());
		quantity = 1;
	}

	void CreatePotion(char* newname, int health, int mana, int cost)
	{
		SetName(newname);
		healthrestore = health;
		manarestore = mana;
		SetPrice(cost);
	}
	void CreateHealthPotion(char* newname,int health,int cost)
	{
		CreatePotion(newname,health,0,cost);
	}

	void CreateManaPotion(char* newname,int mana,int cost)
	{
		CreatePotion(newname,0,mana,cost);
	}

	int GetHealthRestore()
	{
		return healthrestore;
	}

	int GetManaRestore()
	{
		return manarestore;
	}

	int GetQuantity()
	{
		return quantity;
	}

	void SetQuantity(int value)
	{
		quantity = value;
	}

	void AddQuantity(int value)
	{
		quantity += value;
	}

	void SubtractQuantity(int value)
	{
		quantity -= value;
	}

};